package com.soilflow.web.controller.soilflow;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.soilflow.common.core.controller.BaseController;
import com.soilflow.common.core.domain.AjaxResult;
import com.soilflow.common.core.page.TableDataInfo;
import com.soilflow.common.domain.LandPaymentPlan;
import com.soilflow.common.domain.dto.LandPaymentPlanDto;
import com.soilflow.common.domain.dto.LandRentBeOverdueDto;
import com.soilflow.common.domain.vo.LandRentBeOverdueVo;
import com.soilflow.info.service.LandPaymentPlanService;
import com.soilflow.info.service.LandRentBeOverdueService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 租金逾期列表
 * @author chengshihua
 */
@RestController
@RequestMapping("/land/rentBeOverdue")
public class LandRentBeOverdueController extends BaseController {

    @Resource
    private LandRentBeOverdueService landRentBeOverdueService;


    /**
     * 列表
     * @param dto
     * @return
     */
    @GetMapping("/list")
    public TableDataInfo landLawList(LandRentBeOverdueDto dto) {
        startPage();
        List<LandRentBeOverdueVo> list = landRentBeOverdueService.list(dto);
        return getDataTable(list);
    }

}
